using System;
using SharpMud;
using SharpMud.MudLib;

namespace SharpMud.MudLib.SAMPLE.Entities
{
	public class PlayerLoadedException : MudLibException
	{
		public PlayerLoadedException()
			:base("The player is loaded, but shouldn't be for the current operation.")
		{
		}

		public PlayerLoadedException(string playerName)
			:base(String.Format("The player '{0}' is loaded, but shouldn't be for the current operation.",playerName))
		{
			this._PlayerName = playerName;
		}

		public PlayerLoadedException(string playerName, string message)
			:base(message)
		{
			this._PlayerName = playerName;
		}

		public PlayerLoadedException(string playerName, string message, System.Exception innerException)
			:base(message,innerException)
		{
			this._PlayerName = playerName;
		}

		private string _PlayerName;
		public string PlayerName
		{
			get
			{
				return _PlayerName;
			}
		}
	}
}
